<template>
<div text="sm" m="y-4" data-v-72294632=""><p>使用<code>clearable</code>属性即可得到一个可一键清空的输入框</p>
</div>
  <el-input
    v-model="input"
    style="width: 240px"
    placeholder="Please input"
    clearable
  />
</template>

<script lang="ts" setup>
import { ref } from 'vue'
const input = ref('')
</script>

<style scoped>
@import '../../assets/elementPlusDemo.css'
</style>